package com.jz;

import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by Hasee on 2022-03-03.
 */
@Mapper
public interface TestMapper {
    @Select("select * from test")
    List<UserVo> queryUser();

    @Update("update test set name=#{name} where id =#{id}")
    void update(UserVo userVo);

    @Select("select * from test where id = #{id}")
    UserVo queryById(int id);

    @Delete("delete from test where id =#{id}")
    void deleteById(Integer id);
}
